<template>
	<div>
		<button @click="getStudentList">点我获取学生信息</button>
	</div>
</template>

<script>
	import axios from 'axios'
	export default {
		name:'App',
		methods: {
			getStudentList(){
				axios.get('http://localhost:8080/students').then(
					response => {
						console.log(response.data)
					},
					error => {
						console.log(error)
					}
				)
			}
		},
	}
</script>